package org.anarcoding.twitterbot.view;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.SWT;
import org.eclipse.wb.swt.SWTResourceManager;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.TableColumn;

public class CmpAnarcoTwitterPrincipal extends Composite {
	private Table	table;
	private Button	btnConfigurarBot;
	private Button	btnNuevoBot;
	private Button	btnStartBot;
	private Button	btnStopBot;

	/**
	 * Create the composite.
	 * 
	 * @param parent
	 * @param style
	 */
	public CmpAnarcoTwitterPrincipal( Composite parent, int style ) {
		super( parent, style );

		Group grpAnarcodingTwitterRobots = new Group( this, SWT.NONE );
		grpAnarcodingTwitterRobots.setText( "ROBOTS OPERATION" );
		grpAnarcodingTwitterRobots.setFont( SWTResourceManager.getFont( "Tahoma", 7, SWT.BOLD ) );
		grpAnarcodingTwitterRobots.setBounds( 0, 0, 365, 305 );

		table = new Table( grpAnarcodingTwitterRobots, SWT.BORDER | SWT.FULL_SELECTION );
		table.setBounds( 10, 49, 345, 190 );
		table.setHeaderVisible( true );
		table.setLinesVisible( true );

		TableColumn tblclmnNewColumn = new TableColumn( table, SWT.NONE );
		tblclmnNewColumn.setWidth( 70 );
		tblclmnNewColumn.setText( "Alias" );

		TableColumn tblclmnNewColumn_1 = new TableColumn( table, SWT.NONE );
		tblclmnNewColumn_1.setWidth( 100 );
		tblclmnNewColumn_1.setText( "Status" );

		TableColumn tblclmnNewColumn_2 = new TableColumn( table, SWT.NONE );
		tblclmnNewColumn_2.setWidth( 171 );
		tblclmnNewColumn_2.setText( "Archive" );

		btnConfigurarBot = new Button( grpAnarcodingTwitterRobots, SWT.NONE );
		btnConfigurarBot.setBounds( 205, 20, 150, 23 );
		btnConfigurarBot.setText( "Configure robot" );

		btnNuevoBot = new Button( grpAnarcodingTwitterRobots, SWT.NONE );
		btnNuevoBot.setBounds( 10, 20, 150, 23 );
		btnNuevoBot.setText( "New robot" );

		btnStartBot = new Button( grpAnarcodingTwitterRobots, SWT.NONE );
		btnStartBot.setBounds( 10, 245, 150, 23 );
		btnStartBot.setText( "Start robot" );

		btnStopBot = new Button( grpAnarcodingTwitterRobots, SWT.NONE );
		btnStopBot.setBounds( 10, 274, 150, 23 );
		btnStopBot.setText( "Stop robot" );

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

	public Table getTable() {
		return table;
	}

	public void setTable( Table table ) {
		this.table = table;
	}

	public Button getBtnConfigurarBot() {
		return btnConfigurarBot;
	}

	public void setBtnConfigurarBot( Button btnConfigurarBot ) {
		this.btnConfigurarBot = btnConfigurarBot;
	}

	public Button getBtnNuevoBot() {
		return btnNuevoBot;
	}

	public void setBtnNuevoBot( Button btnNuevoBot ) {
		this.btnNuevoBot = btnNuevoBot;
	}

	public Button getBtnStartBot() {
		return btnStartBot;
	}

	public void setBtnStartBot( Button btnStartBot ) {
		this.btnStartBot = btnStartBot;
	}

	public Button getBtnStopBot() {
		return btnStopBot;
	}

	public void setBtnStopBot( Button btnStopBot ) {
		this.btnStopBot = btnStopBot;
	}
}
